package com.domain.dto.role;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
public class ModifyRolePermissionDTO {
    @Schema(description = "角色编号", example = "1")
    @NotNull(message = "角色编号不能为空")
    private Integer roleId;

    @Schema(description = "权限编号列表", example = "1，2，3")
    @NotEmpty(message = "权限编号不能为空")
    private List<Integer> permissionIds;
}
